const mongoose = require('mongoose');
mongoose.connect("mongodb://localhost/test")
mongoose.Promise = Promise;

//文章对象
const User = mongoose.model("User",{
    loginname: String,
    password: String,
    confirm: String
})

module.exports = User ;